<template>
  <div>
    <h2>个人中心页面: 接口数据</h2>
    <textarea name="" style="width:100%; height: 400px" v-model="recoms"></textarea>
  </div>
</template>

<script>
export default {
  middleware: "auth",
  async asyncData({ store, $axios }) {
    const authUser = store.state.token;
    const res = await $axios.$post("/api/recoms");

    return {
      recoms: JSON.stringify(res)
    };
  },
  data: () => ({
    recoms: ""
  })
};
</script>

<style lang="scss" scoped></style>
